home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 September / EnigmA AMIGA RUN 30 (1998)(G.R. Edizioni)(IT)[!][issue 1998-09].iso / recent / ramlib1.rea < prev    next >
Text File  |  1998-07-27  |  2KB  |  63 lines

  1. Short:    No more RAMLIB crashes !
  2. Author:   Andreas R. Kleinert
  3. Uploader: Andreas_Kleinert@t-online.de
  4. Type:     util/sys
  5.  
  6.  The "ramlib" task, which Exec uses to manage
  7.  library loading and initialization, under
  8.  OS 33-40 (Kickstart 1.2 upto AmigaOS 3.1)
  9.  only has a stack sized 2050 bytes.
  10.  
  11.  This may easily lead to crashes, when
  12.  
  13.    a) libraries load many other libraries,
  14.       that load many other libraries, that...
  15.  
  16.    b) some of these libraries do need a
  17.       lot of stack space during initialization
  18.  
  19.  Unfortunately, there is no legal way to
  20.  increase/swap stacks of foreign tasks
  21.  under AmigaOS.
  22.  
  23.  However, this small patch program does
  24.  try it nevertheless, and it seems to
  25.  work flawlessly.
  26.  
  27.  "RamLibPatch" increases the stacksize of
  28.  the "ramlib" task to 16 K (if not already
  29.  done) and furthermore should keep all
  30.  that nasty "ramlib guru #3" crashes away
  31.  from your system.
  32.  
  33.  Usage:  - call it from the Shell first,
  34.            and check, whether it works
  35.            for you
  36.          - make some extensive tests,
  37.            e.g. with datatypes and
  38.            other libraries
  39.          - if it works ok, put it to
  40.            your s:startup-sequence
  41.            right after SetPatch:
  42.  
  43.              RamLibPatch >NIL: <NIL:
  44.  
  45.            or
  46.  
  47.              Run >NIL: <NIL: RamLibPatch
  48.  
  49.  Drawbacks:
  50.  
  51.  The old stack never will be given back
  52.  to the system, as also won't be the new
  53.  one - until the next reboot.
  54.  
  55.  
  56.  Well, last not least:
  57.  
  58.  I'm not responsible for anything, there's no guarantee for anything,
  59.  and all mentioned trademarks are subject to their owners :-)
  60.  
  61. --
  62. ARK, 15/Jul/98
  63.